﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using LuKou.Web.BLL.Service;
using LuKou.Shopspace.Domains;

namespace LuKou.Web.Helper
{
    public static class GoodsAttr
    {
        public static string GoodsCategory(this HtmlHelper htmlHelper, long categoryID, long pid, long vid)
        {
            CategoryPropValue attr = CategoryService.GetGoodsCategory(categoryID, pid, vid);

            return (attr == null) ? pid.ToString() : attr.Name;
        }
    }
}
